package com.example.demo02.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "药品类", description = "$!{table.comment}")
@TableName("Shopping")
public class Shopping {
    @Schema(description = "id")
    private int id;
    @Schema(description = "药品id")
    @TableField("medicine_id")
    private int medicineId;
    @Schema(description = "药品名称")
    @TableField("medicine_name")
    private String medicineName;
    @Schema(description = "药品单价")
    @TableField("medicine_price")
    private double medicinePrice;
    @Schema(description = "药品数量")
    @TableField("medicine_num")
    private int medicineNum;
    @Schema(description = "总价")
    @TableField("total_price")
    private double totalPrice;
}
